package com.hjf.ditubiaozhu.base.recycler;

import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;

/**
 * Created by guilin on 16/7/15.
 * <p>
 * 描述:列表刷新帮助类
 */

public interface SwipeHelper<LoadHV extends RecyclerView.ViewHolder,
        MoreHV extends RecyclerView.ViewHolder > {

    LoadHV loadViewHolder(ViewGroup parent);

    MoreHV moreViewHolder(ViewGroup parent);

    RecyclerView.ViewHolder onCreateUserViewHolder(ViewGroup parent, int viewType);

    void bindLoadViewHolder(LoadHV holder);

    void bindMoreViewHolder(MoreHV holder);

    void bindUserViewHolder(RecyclerView.ViewHolder holder, int position);

    int userDataCount();
}
